package com.city.domain.house;
/*
 * @Author: 李顺时
 * @Description: 用于家庭人员的展示
 * @Date: Create in 17:10 2018/8/17
 * @Modified By:
 * */

import java.util.Objects;

public class FamliyDetails {
    private int id;//主键
    private int householdId;//家庭id
    private int townId;//镇id
    private int villageId;//村id
    private String name;//姓名
    private String idCard;//身份证号码
    private int age;//年龄
    private String born;
    private String hrResiter;//籍贯
    private String nohRegister; // 户籍性质
    private String bornAddress;  //出生地
    private String marriage; //婚姻状况
    private String education;  //学历
    private int income; // 收入
    private String school;  //毕业院校
    private String tellphone;  //手机号
    private String politicalOutlook; //政治面貌
    private String sex;//性别
    private String nation;//民族
    private String relation;//关系
    private String isLdl;//是否有劳动力
    private String isCj;//是否残疾
    private String healthStatus;//健康状况：1健康，2长期慢性病，3患大病
    private String isDb;//是否低保
    private String isBx;//是否保险
    private String isWb;//是否五保
    private String work;//就业情况
    private String industry;//工作行业
    private int updateTime;
    private String major;//所学专业
    private String email;//电子邮箱
    private String qq;  //qq
    private String weixin;//微信
    private String livein;  //家庭住址
    private String beizhu;//备注

    public FamliyDetails() {
    }

    public FamliyDetails(int id, int householdId, int townId, int villageId, String name, String idCard, int age, String born, String hrResiter, String nohRegister, String bornAddress, String marriage, String education, int income, String school, String tellphone, String politicalOutlook, String sex, String nation, String relation, String isLdl, String isCj, String healthStatus, String isDb, String isBx, String isWb, String work, String industry, int updateTime, String major, String email, String qq, String weixin, String livein, String beizhu) {
        this.id = id;
        this.householdId = householdId;
        this.townId = townId;
        this.villageId = villageId;
        this.name = name;
        this.idCard = idCard;
        this.age = age;
        this.born = born;
        this.hrResiter = hrResiter;
        this.nohRegister = nohRegister;
        this.bornAddress = bornAddress;
        this.marriage = marriage;
        this.education = education;
        this.income = income;
        this.school = school;
        this.tellphone = tellphone;
        this.politicalOutlook = politicalOutlook;
        this.sex = sex;
        this.nation = nation;
        this.relation = relation;
        this.isLdl = isLdl;
        this.isCj = isCj;
        this.healthStatus = healthStatus;
        this.isDb = isDb;
        this.isBx = isBx;
        this.isWb = isWb;
        this.work = work;
        this.industry = industry;
        this.updateTime = updateTime;
        this.major = major;
        this.email = email;
        this.qq = qq;
        this.weixin = weixin;
        this.livein = livein;
        this.beizhu = beizhu;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getHouseholdId() {
        return householdId;
    }

    public void setHouseholdId(int householdId) {
        this.householdId = householdId;
    }

    public int getTownId() {
        return townId;
    }

    public void setTownId(int townId) {
        this.townId = townId;
    }

    public int getVillageId() {
        return villageId;
    }

    public void setVillageId(int villageId) {
        this.villageId = villageId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBorn() {
        return born;
    }

    public void setBorn(String born) {
        this.born = born;
    }

    public String getHrResiter() {
        return hrResiter;
    }

    public void setHrResiter(String hrResiter) {
        this.hrResiter = hrResiter;
    }

    public String getNohRegister() {
        return nohRegister;
    }

    public void setNohRegister(String nohRegister) {
        this.nohRegister = nohRegister;
    }

    public String getBornAddress() {
        return bornAddress;
    }

    public void setBornAddress(String bornAddress) {
        this.bornAddress = bornAddress;
    }

    public String getMarriage() {
        return marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public int getIncome() {
        return income;
    }

    public void setIncome(int income) {
        this.income = income;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getTellphone() {
        return tellphone;
    }

    public void setTellphone(String tellphone) {
        this.tellphone = tellphone;
    }

    public String getPoliticalOutlook() {
        return politicalOutlook;
    }

    public void setPoliticalOutlook(String politicalOutlook) {
        this.politicalOutlook = politicalOutlook;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getIsLdl() {
        return isLdl;
    }

    public void setIsLdl(String isLdl) {
        this.isLdl = isLdl;
    }

    public String getIsCj() {
        return isCj;
    }

    public void setIsCj(String isCj) {
        this.isCj = isCj;
    }

    public String getHealthStatus() {
        return healthStatus;
    }

    public void setHealthStatus(String healthStatus) {
        this.healthStatus = healthStatus;
    }

    public String getIsDb() {
        return isDb;
    }

    public void setIsDb(String isDb) {
        this.isDb = isDb;
    }

    public String getIsBx() {
        return isBx;
    }

    public void setIsBx(String isBx) {
        this.isBx = isBx;
    }

    public String getIsWb() {
        return isWb;
    }

    public void setIsWb(String isWb) {
        this.isWb = isWb;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getLivein() {
        return livein;
    }

    public void setLivein(String livein) {
        this.livein = livein;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FamliyDetails that = (FamliyDetails) o;
        return id == that.id &&
                householdId == that.householdId &&
                townId == that.townId &&
                villageId == that.villageId &&
                age == that.age &&
                income == that.income &&
                updateTime == that.updateTime &&
                Objects.equals(name, that.name) &&
                Objects.equals(idCard, that.idCard) &&
                Objects.equals(born, that.born) &&
                Objects.equals(hrResiter, that.hrResiter) &&
                Objects.equals(nohRegister, that.nohRegister) &&
                Objects.equals(bornAddress, that.bornAddress) &&
                Objects.equals(marriage, that.marriage) &&
                Objects.equals(education, that.education) &&
                Objects.equals(school, that.school) &&
                Objects.equals(tellphone, that.tellphone) &&
                Objects.equals(politicalOutlook, that.politicalOutlook) &&
                Objects.equals(sex, that.sex) &&
                Objects.equals(nation, that.nation) &&
                Objects.equals(relation, that.relation) &&
                Objects.equals(isLdl, that.isLdl) &&
                Objects.equals(isCj, that.isCj) &&
                Objects.equals(healthStatus, that.healthStatus) &&
                Objects.equals(isDb, that.isDb) &&
                Objects.equals(isBx, that.isBx) &&
                Objects.equals(isWb, that.isWb) &&
                Objects.equals(work, that.work) &&
                Objects.equals(industry, that.industry) &&
                Objects.equals(major, that.major) &&
                Objects.equals(email, that.email) &&
                Objects.equals(qq, that.qq) &&
                Objects.equals(weixin, that.weixin) &&
                Objects.equals(livein, that.livein) &&
                Objects.equals(beizhu, that.beizhu);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, householdId, townId, villageId, name, idCard, age, born, hrResiter, nohRegister, bornAddress, marriage, education, income, school, tellphone, politicalOutlook, sex, nation, relation, isLdl, isCj, healthStatus, isDb, isBx, isWb, work, industry, updateTime, major, email, qq, weixin, livein, beizhu);
    }


    @Override
    public String toString() {
        return "FamliyDetails{" +
                "id=" + id +
                ", householdId=" + householdId +
                ", townId=" + townId +
                ", villageId=" + villageId +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", age=" + age +
                ", born='" + born + '\'' +
                ", hrResiter='" + hrResiter + '\'' +
                ", nohRegister='" + nohRegister + '\'' +
                ", bornAddress='" + bornAddress + '\'' +
                ", marriage='" + marriage + '\'' +
                ", education='" + education + '\'' +
                ", income=" + income +
                ", school='" + school + '\'' +
                ", tellphone='" + tellphone + '\'' +
                ", politicalOutlook='" + politicalOutlook + '\'' +
                ", sex='" + sex + '\'' +
                ", nation='" + nation + '\'' +
                ", relation='" + relation + '\'' +
                ", isLdl='" + isLdl + '\'' +
                ", isCj='" + isCj + '\'' +
                ", healthStatus='" + healthStatus + '\'' +
                ", isDb='" + isDb + '\'' +
                ", isBx='" + isBx + '\'' +
                ", isWb='" + isWb + '\'' +
                ", work='" + work + '\'' +
                ", industry='" + industry + '\'' +
                ", updateTime=" + updateTime +
                ", major='" + major + '\'' +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", weixin='" + weixin + '\'' +
                ", livein='" + livein + '\'' +
                ", beizhu='" + beizhu + '\'' +
                '}';
    }
}
